package com.hiwan.unions.view.dialog;

import android.app.ProgressDialog;
import android.content.Context;
import android.view.Window;

import com.hiwan.unions.R;

/**
 * Created by llg on 2017/6/21.
 */
public class WaitDialog extends ProgressDialog {
    public WaitDialog(Context context) {
        super(context);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        setCanceledOnTouchOutside(false);
        setProgressStyle(STYLE_SPINNER);
        setIndeterminateDrawable(context.getResources().getDrawable(R.drawable.anim_loading2));
        setMessage(context.getText(R.string.wait_dialog_title));
    }
}
